package com.example.fireassistant_server.dto.user;

import com.example.fireassistant_server.enums.Gender;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserCreateRequest {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 10, message = "用户名在2-10个字符之间")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 32, message = "密码应该在6个字符到32个字符之间")
    private String password;

    private String nickname;

    private Gender gender;

    private String phoneNumber;

    private Boolean applyAdmin = false;

    // 单位的ID
    @NotNull(message = "单位ID不能为空")
    private String companyId;

    @NotBlank(message = "来源不能为空")
    private String source;

}
